Skip to content

Map BLOCK_CHANGED_ACK to BLOCK_UPDATE in 1.19 -> 1.18.2#1250

Open
calcastor wants to merge 1 commit intoViaVersion:masterfrom
calcastor:block_changed_ack_1_18_2
Open

Map BLOCK_CHANGED_ACK to BLOCK_UPDATE in 1.19 -> 1.18.2#1250
calcastor wants to merge 1 commit intoViaVersion:masterfrom
calcastor:block_changed_ack_1_18_2

Conversation

@calcastor
Copy link
Copy Markdown

Likely addresses #798

This PR re-implements BlockAckStorage from 15a5e6f, though changing its scope to cache and store block updates to work around BLOCK_CHANGED_ACK only carrying a sequence number.

We cache data in BlockAckStorage from 1.19 LEVEL_CHUNK_WITH_LIGHT, BLOCK_UPDATE, and SECTION_BLOCKS_UPDATE packets, and cleanup with FORGET_LEVEL_CHUNK.

This is stored as int[][] in BlockAckStorage rather than ChunkSection as block mappings were incorrect in sub-1.17 in my testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant